<template>
<div class="demo">
  <div>
    <search :styleObject="searchStyle" :inputholder="searchHolder" v-on:fullSearch="searchVal" ></search>
  </div>
</div>
</template>

<script>
export default {
  data() {
    return {
      searchStyle: {
        width: 300,
        height: 30,
      },
      searchHolder: '姓名',
    }
  },
  methods: {
    searchVal(keyWord) {
      console.log(keyWord)
    }
  }
}
</script>

<style>
.demo {
  padding: 10px;
}
</style>
